# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-pysrt
_pkgname=pysrt
pkgver=1.1.2
pkgrel=0
pkgdesc="Python parser for SubRip (srt) files"
url="https://github.com/byroot/pysrt"
arch="noarch"
license="GPL-3.0-only"
depends="python3 py3-chardet"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0d6b3a7ce4c8733221bfb5c3e434233d1b221fedda3c145fafe124093f1f9090b99c175e79de386717ec5f8b564c62719f377651db95a8d3c382e2bf8dccb0a8  py3-pysrt-1.1.2.tar.gz
"
